package com.sywb.chuangyebao.bean;

import android.text.TextUtils;
import android.util.Log;

import com.sywb.chuangyebao.utils.DateTimeUtils;

import org.bining.footstone.utils.TimeUtils;

import java.io.Serializable;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 我的文章详细信息
 */
public class MyArticleBean implements Serializable {
    public int id;//文章id
    public String title;//标题
    public int status;//状态
    public String content;//内容
    public long inputtime;//时间
    public double money;//金额

    public String media_url;//视频url
    public String media_length;//视频时长

    private String date;//日期
    private String time;//时间

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public void getDateOrTime() {
        if (!TextUtils.isEmpty(String.valueOf(inputtime))) {
            String time = DateTimeUtils.getChatTime(inputtime);
            setDate(time);
        }
    }
}
